import VXETable from 'vxe-table'
import {h} from "vue"
import EditDownTextarea from './EditDownTextarea.vue'
import EditSlider from "./EditSlider.vue";

VXETable.renderer.add('EditDownTextarea', {
    autofocus: '.vxe-input--inner',
    autoselect: true,
    renderEdit (renderOpts, params) {
        let {props} = renderOpts;
        return [
            h(EditDownTextarea, {
                params: params,
                textareaOpts: props
            })
        ]
    },
})
VXETable.renderer.add('EditSlider', {
    autofocus: '.vxe-input--inner',
    autoselect: true,
    renderEdit (renderOpts, params) {
        let {props} = renderOpts;
        return [
            h(EditSlider, {
                params: params,
                textareaOpts: props
            })
        ]
    },
})
